UPDATE c1_wf_variable SET END_DATE = NOW(), DATA_STATE_CODE = '0' WHERE INSTR(:wfVariableIds, WF_VARIABLE_ID) > 0